/*轮播图表*/
const mysql = require('../mysql')
const Sequelize = require('sequelize')

const Carousel = mysql.define('mi_carousel', {
	carousel_info: Sequelize.STRING(30),
	carousel_img_url: Sequelize.STRING,
	carousel_href: Sequelize.STRING(100),
	is_show: Sequelize.INTEGER
},{
	timestamps: false,
	freezeTableName: true
})

/*function findShowCarousel(callBack) {
	 Carousel.findAll({
		where: {
			is_show: 1
		}
	}).then(carousels => {
		 callBack(carousels)
	 })
}

module.exports = {
	findShowCarousel: findShowCarousel
}*/


